package com.zengqingfa.shardingjdbc.demo.service;

import com.zengqingfa.shardingjdbc.demo.entity.Dict;
import com.zengqingfa.shardingjdbc.demo.mapper.DictMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @fileName: BillService
 * @author: zengqf3
 * @date: 2021-1-28 10:45
 * @description:
 */
@Service
public class DictServiceImpl implements DictService {


    @Autowired
    private DictMapper dictMapper;

    @Override
    public int create(Dict dict) {
        return dictMapper.create(dict);
    }

    @Override
    public Dict selectByPrimary(Long id) {
        return dictMapper.selectByPrimary(id);
    }
}
